-- GENERATED SPELL FOR [Dark Iron Supplier] --


function spell0_2575(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2575', 30000, 1)
end

function spell1_2575(pUnit, Event) --@Resupply,Heal--
pUnit:FullCastSpellOnTarget(4961,pUnit)
pUnit:RegisterEvent('Sorts_2575', 2000, 1)
end

function Sorts_2575(pUnit, Event)
local choix_sorts_2575 = math.random(0, 1)
if choix_sorts_2575 == 0 then
pUnit:RegisterEvent('spell0_2575', 1, 1)
end
if choix_sorts_2575 == 1 then
pUnit:RegisterEvent('spell1_2575', 1, 1)
end
end

function mob2575_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2575', math.random(1500, 3000), 1)
end

function mob2575_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2575_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2575_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2575, 1, 'mob2575_Action')
RegisterUnitEvent(2575, 2, 'mob2575_Leave')
RegisterUnitEvent(2575, 3, 'mob2575_Kill')
RegisterUnitEvent(2575, 4, 'mob2575_Die')
